package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SumSquaresLong2DArray {
	public static double sumSquares(long[][] data) {
		long ans = 0;
		for (long[] aData : data) {
			for (int l = 0; l < aData.length; l++) {
				ans += aData[l] * aData[l];
			}
		}
		return ans;
	}
}
